package com.abe.mvp.model.bean;

import com.abe.utils.JsonHelper;
import com.google.gson.annotations.Expose;

public class SerialPortParseBean {
	/** 根据地址区分功能 */
	@Expose
	private byte address;
	/** 操作类型：0：读数据 1：写数据 */
	@Expose
	private int useType;
	/** 是否校验成功 */
	@Expose
	private boolean verifyStatus;

	@Expose
	private DeviceBean readData;

	public byte getAddress() {
		return address;
	}

	public void setAddress(byte address) {
		this.address = address;
	}

	/** 操作类型：0：读数据 1：写数据 */
	public int getUseType() {
		return useType;
	}

	/** 操作类型：0：读数据 1：写数据 */
	public void setUseType(int useType) {
		this.useType = useType;
	}

	/** 数据校验成功 */
	public boolean isVerifyStatus() {
		return verifyStatus;
	}

	public void setVerifyStatus(boolean verifyStatus) {
		this.verifyStatus = verifyStatus;
	}

	

	public DeviceBean getReadData() {
		return readData;
	}

	public void setReadData(DeviceBean readData) {
		this.readData = readData;
	}

	public SerialPortParseBean() {
		address = 0x00;
		useType = 0;
		verifyStatus = false;
		readData = null;
	}

	public String toString() {
		return JsonHelper.toJson(this);
	}
}
